package com.fullstack.app.pages.common


import com.fullstack.app.App.root

import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport

object Constants {

  // 后端接口路径
  object endpoints {
    
    
    
    // 获取用户信息
    val getUserInfo = s"$root/api/user/getUserInfo"
    // 更新用户信息
    val updateUserInfo = s"$root/api/user/updateUserInfo"
    // 更新用户手机号
    val updateUserPhone = s"$root/api/user/updateUserPhone"
    // 上传用户头像图片
    val uploadUserImage = s"$root/api/user/uploadImage"
    
    
  }

  object cookies {

    val duration = 10 * 24 * 3600 * 1000

    val userId = "userId"
    val userName = "userName"
    val userPhone = "userPhone"
    val userPortraitUrl = "userPortraitUrl"
    val token = "token"

  }


  @js.native
  @JSImport("/static/img/zybkltw_logo.png", JSImport.Default)
  val javascriptLogo: String = js.native

}
